package com.example.communist_app_api.service;

import com.example.communist_app_api.db.dto.ActivityUniAppPersonalDTO;
import com.example.communist_app_api.vo.uniapp.resp.UniAppMyActivityRecordResp;

import java.util.HashMap;
import java.util.List;

public interface UserActivityService {
    HashMap<Integer, Integer> getApplicationNumberByActivityIdList(List<Integer> activityIdList);

    List<Integer> getUserIdListByActivityId(Integer activityId);

    void insertByUserIdAndActivityId(int userId, Integer activityId);

    Integer getApplicationNumberByActivityId(Integer activityId);

    Boolean getExistenceByUserIdAndActivityId(int userId, Integer activityId);

    UniAppMyActivityRecordResp getAllActivityByUserId(String title , Integer activityId);

    void cancelActivitySignUp(Integer activityId, Integer userId);
}
